package com.mall.weapp.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class Brand {

    @TableId(type = IdType.AUTO)
    private long id;
    private String name;
    private int sort;
    private Date createTime;
    private Date updateTime;

    public Brand(long id, String name, int sort, Date createTime, Date updateTime) {
        this.id = id;
        this.name = name;
        this.sort = sort;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
